from flask import Flask,request,render_template
from spider import getBdMsg

app = Flask(__name__)



@app.route('/')
def index():
	return render_template('index.html')

@app.route('/s' , methods=['GET', 'POST'])
def s():
	wd = request.args.get('wd')
	html = getBdMsg(wd)
	return html

	
if __name__ == '__main__':
	app.run(debug=True)
	
	
	
	
	
	
	
	